﻿using Inovout.Kuajing.Exports.Models;
using Inovout.Memberships.Models;
using Inovout.Services;
using NHibernate.Criterion;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Inovout.Kuajing.Exports.Services
{
     public class ExporterService : RepositoryService<Exporter>, IExporterService
    {
         public Exporter FindByMembership(Membership membership)
         {
             return base.Repository.Find(Restrictions.Eq("Membership.Id", (object)membership.Id));
         }
    }
}
